<template>
  <CustomPage headerType="search" api="getTakoutClassify" enablePullDownRefresh @getUpdateData="handleGetData">
    <view>测试，懒得写了真的假的</view>
  </CustomPage>
</template>

<script lang="ts" setup>
import CustomPage from '@/components/customPage/index.vue'
import Taro, { navigateTo } from '@tarojs/taro'
import { onMounted, reactive, toRefs } from 'vue'
import i18nStore, { localesType } from '@/locales/index'
// import { Search2 } from '@nutui/icons-vue-taro'
import $ajax from '@/utils/request'
const store = i18nStore()
interface stateType {
  name: string
  // classifyList: {}[]
}
const handleClick = () => {
  navigateTo({
    url: '/subPackages/shoppingMall/pages/index/index',
  })
  store
}
const state = reactive<stateType>({
  name: '',
  // classifyList: [{}],
})
const handleGetData = (res) => {
  console.log(res, '----页面数据')
}
const init = () => {}
onMounted(async () => {
  init()
  const { language } = await Taro.getSystemInfo()
  store.$patch({
    lang: language as localesType,
  })
})
// const { name, classifyList } = toRefs(state)
</script>
<style lang="scss">
@import './index.scss';
</style>
